export const state = {
  loginForm: {
    username: '',
    password: ''
  },
  rules: {
    username: [
      {
        type: 'string',
        required: true,
        message: '请输入用户名',
        trigger: 'blur'
      }
    ],
    password: [
      {
        type: 'string',
        required: true,
        message: '请输入密码',
        trigger: 'change'
      }
    ]
  }
}

export const actions = {}

export default {
  namespaced: true,
  actions,
  state
}
